<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN" dir="ltr">
<head profile="http://gmpg.org/xfn/11">
<title>Principal</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<?php
		echo $this->Html->meta('icon');
                echo $this->Html->css('navi');
                echo $this->Html->css('layout');
                echo $this->Html->css('forms');
                echo $this->Html->css('featured_slide');
                echo $this->Html->css('tables');
                
                echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
                echo $this->fetch('js');
                              
	?>



</head>
<body >
   <script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

 <div id="fb-root"></div>

    
    
    
    
    
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
 
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>


<div class="wrapper col4">
  <div id="featured_slide">
    <div id="featured_content">
     
      <ul>
          <?php
             foreach($eventos as $evento): ?>
          <?php   if ($evento['Evento']['aprovar']==1){

       echo "<li>"; echo $this->Html->link($this->Html->image('uploads/evento/filename/'.$evento['Evento']['filename']),'',array('target' => '_blank', 'escape' => false));echo "</li>";
      
      }  else {
      
        }?>
        <?php endforeach; ?>
  
      </ul>
      
    </div>
      <a href="javascript:void(0);" id="featured-item-prev"><?php echo $this->Html->image('prev.png', array('alt' => 'CakePHP'))?></a> 
      <a href="javascript:void(0);" id="featured-item-next"><?php echo $this->Html->image('next.png', array('alt' => 'CakePHP'))?></a> 
          
   
  </div>
      
      </div>  

<div class="wrapper col5">
  <div id="container">
    <div id="content"> 
 
      
<h2>Eventos do M&ecirc;s</h2>
  <?php
                      $cont=0;
                foreach($eventos as $evento): ?>
                     
        <?php   if ($evento['Evento']['aprovar']==1 && $cont<2){
        
                echo $this->Html->image('uploads/evento/filename/'.$evento['Evento']['filename'],array('alt'=>$evento['Evento']['nomeEvento'],'width'=>'200','height'=>'200','class'=>'imgl'));         
                echo "<p><strong> ";echo h($evento['Evento']['nomeEvento']); echo "</strong></p>";
		echo "<p>Data : ";echo h($evento['Evento']['dataEvento']); 
		echo "<p>Horário : ";echo h($evento['Evento']['horarioEvento']);
		echo "<p>Local : ";echo h($evento['Evento']['localEvento']); 
		echo "<p>Contato : ";echo h($evento['Evento']['telefoneEvento']);
		echo "<p>Endereço : ";echo h($evento['Evento']['enderecoEvento']);
		echo "<p>Preço Entrada (R$): ";echo h($evento['Evento']['precoEvento']);
		echo "<p>Atrações : ";echo h($evento['Evento']['bandasEvento']);
                echo "<p>Descrição : ";echo h($evento['Evento']['descricao']); 
                
                echo"<ul><p class=\"readmore\"></p></ul>"; 
                
                $cont++;
        }  else {
            
        }?>
        <?php endforeach; ?>
        
    </div>
 
    
    <div id="column">
      <div class="holder">
        <h2>Rede Social!</h2>
        <ul id="latestnews">
            

            
            
       <li><div class="fb-like" data-href="http://www.facebook.com/pages/Eventos-de-Jo%C3%A3o-Monlevade/420376124722794" data-send="true" data-width="300" data-show-faces="true" data-font="arial" data-action="recommend"></div></li>
          
       <li> 
           <a href="https://twitter.com/https://twitter.com/Dagsonmg" class="twitter-share-button" data-size="large" data-counturl="http://www.facebook.com/pages/Eventos-de-Jo%C3%A3o-Monlevade/420376124722794"  data-lang="en">Tweet</a><br/><br/>
           <a href="https://twitter.com/https://twitter.com/Dagsonmg" class="twitter-follow-button" data-size="large" data-show-count="true" data-lang="en">Follow @twitterapi</a>
       </li>
       
       
            
     <div class="fb-like" data-href="http://www.facebook.com/pages/Eventos-de-Jo%C3%A3o-Monlevade/420376124722794"  data-width="450"  data-action="like"></div>
          
          
        </ul>
      </div>
    </div>
    <br class="clear" />
  </div>
</div>



  
</body>
</html>
